<!--自定义页面-->
<template>
  <div>
    <Nuxt keep-alive />
    <!--全局loading-->
    <div class="pop-model" v-if="overLoading">
      <van-loading type="spinner" color="#fff" />
    </div>
  </div>
</template>
<script>
export default {
  computed: {
    overLoading() {
      return this.$store.state.overLoading;
    },
  },
  mounted() {
    this.$store.commit("setLoding", false);
  },
};
</script>
<style lang="less" scoped>
.pop-model {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}
</style>